package lei.h_java8特性.方法引用.Demo;

/**
 * @className: Person
 * @author: xl
 * @date: 2025/7/18 21:59
 * @Version: 1.0
 * @description:
 */

public class Person2 {
    private String name;
    private int age;

    public Person2() {
    }

    public Person2(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{name='" + name + "', age=" + age + "}";
    }
}

